<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Trip</title>
  <script type="text/javascript" src="js/common.js" charset="utf-8"></script>
  <!-- <script type="text/javascript" src="js/jquery-3.2.1.min.js"></script> -->
  <link rel="stylesheet" href="https://at.alicdn.com/t/font_234130_nem7eskcrkpdgqfr.css">
  <link rel="stylesheet" href="fonts/font_travel/iconfont.css">
  <link rel="stylesheet" href="style/reset.css">
  <link rel="stylesheet" href="style/common.css">
  <link rel="stylesheet" href="style/trip.css">
</head>
<body>
  <!-- 最大容器 -->
  <div class="wapper">
    <!-- 头部 -->
    <header>
      <div class="title">
        <p>行程</p>
        <a href="message.html" class="iconfont icon-juzuo-1 titright"></a>
      </div>
      <img class="whitebg" src="images/index_bg03.png" alt="">
      <!-- 日历 -->
      <div class="calendar">
        <div id='schedule-box' class="boxshaw">
        </div>
        <div>
          <h3 id='h3Ele'></h3>
        </div>
      </div>
    </header>
    <!-- 行程内容 -->
    <section class="trip">
      <ul class="tripul">
        <li>
          <a href="" class="iconfont icon-ziyuan12"></a>
          <div class="tritext">
            <p class="tit">打车去机场<span>08:00am</span></p>
            <div class="fromto">
              <div class="from">
                <p>北京<span>09:00</span></p>
              </div>
              <span class="iconfont icon-xiangyou xiangyou"></span>
              <span class="iconfont icon-jipiao-copy jipiao"></span>
              <span class="iconfont icon-xiangyou xiangyou"></span>
              <div class="from to">
                <p>深圳<span>10:22</span></p>
              </div>
            </div>
          </div>
          <div class="colorbox">
            <div class="top color1"></div>
            <div class="bot">
              <div class="botleft color2"></div>
              <div class="botright color3"></div>
            </div>
          </div>
        </li>
        <li>
          <a href="" class="iconfont icon-jiudian"></a>
          <div class="tritext">
            <p class="tit">入住酒店<span>11:00am</span></p>
            <p class="hotel">喜来登大酒店</p>
            <p class="address"><span class="iconfont icon-mudedi"></span>XXX区XXX街道XXX号</p>
          </div>
          <div class="colorbox">
            <div class="top color4"></div>
            <div class="bot">
              <div class="botleft color5"></div>
              <div class="botright color6"></div>
            </div>
          </div>
        </li>
        <li>
          <a href="" class="iconfont icon-canyin"></a>
          <div class="tritext">
            <p class="tit">午餐用饭<span>11:00am</span></p>
            <p class="hotel">喜来登大酒店</p>
            <p class="address"><span class="iconfont icon-mudedi"></span>XXX区XXX街道XXX号</p>
          </div>
          <div class="colorbox">
            <div class="top color7"></div>
            <div class="bot">
              <div class="botleft color1"></div>
              <div class="botright color2"></div>
            </div>
          </div>
        </li>
        <li>
          <a href="" class="iconfont icon-gouwu"></a>
          <div class="tritext">
            <p class="tit">逛街<span>11:00am</span></p>
            <p class="hotel">喜来登大酒店</p>
            <p class="address"><span class="iconfont icon-mudedi"></span>XXX区XXX街道XXX号</p>
          </div>
          <div class="colorbox">
            <div class="top color4"></div>
            <div class="bot">
              <div class="botleft color8"></div>
              <div class="botright color9"></div>
            </div>
          </div>
        </li>
      </ul>
    </section>
    <!-- 底部 -->
    <footer>
      <ul class="navul">
        <li>
          <a href="index.html">
            <span class="iconfont icon-shouye"></span>
            <p>首页</p>
          </a>
        </li>
        <li>
          <a href="destination.html">
            <span class="iconfont icon-fenzux"></span>
            <p>目的地</p>
          </a>
        </li>
        <li>
          <a href="find.html">
            <span class="iconfont icon-ziyuanfaxian"></span>
            <p>发现</p>
          </a>
        </li>
        <li>
          <a href="trip.html">
            <span class="iconfont icon-icon-xingcheng"></span>
            <p>行程</p>
          </a>
        </li>
        <li>
          <a href="mine.html">
            <span class="iconfont icon-wode"></span>
            <p>我的</p>
          </a>
        </li>
      </ul>
    </footer>
  </div>
  <script src="js/schedule.js"></script>
<script>
  var time = new Date()
  var year = time.getFullYear() //年
  var month = time.getMonth()+1 //月
  var da = time.getDate()     //日
	var mySchedule = new Schedule({
		el: '#schedule-box',	//容器元素
		date: year+'-'+month+'-'+da,	//当前日期
		disabledBefore: '2020-07-10',	//禁用此日期之前
		disabledAfter: '2021-11-15',	//禁用此日期之后
		disabledDate: ['2021-1-20', '2021-1-2', '2021-1-23'],	//禁用的日期
		selectedDate: ['2021-03-21', '2021-03-22', '2021-03-23'],	//选中的日期
		showToday: true,	//回到今天
		clickCb: function (date) {
			document.querySelector('#h3Ele').innerHTML = '日期：' + date
		},
		nextMonthCb: function (currentYear, currentMonth) {
			console.log('currentYear:' + currentYear, 'currentMonth:' + currentMonth)
		},
		nextYeayCb: function (currentYear, currentMonth) {
			console.log('currentYear:' + currentYear, 'currentMonth:' + currentMonth)
		},
		prevMonthCb: function (currentYear, currentMonth) {
			console.log('currentYear:' + currentYear, 'currentMonth:' + currentMonth)
		},
		prevYearCb: function (currentYear, currentMonth) {
			console.log('currentYear:' + currentYear, 'currentMonth:' + currentMonth)
		}
	});
</script>
</body>
</html>